//
//  JSMLeavingDiscoverTableViewCell.m
//  TakeYouTourTogether
//
//  Created by dllo on 15/12/5.
//  Copyright © 2015年 king. All rights reserved.
//

#import "JSMLeavingDiscoverTableViewCell.h"

@implementation JSMLeavingDiscoverTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    self.bigImageView = [[BaseImageView alloc] init];
    [self.contentView addSubview:self.bigImageView];
    
    self.titleLabel = [[BaseLabel alloc] init];
    [self.contentView addSubview:self.titleLabel];
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    self.titleLabel.font = [UIFont systemFontOfSize:19];
    self.titleLabel.alpha = 1;
    self.titleLabel.numberOfLines = 0;
    self.titleLabel.textColor = [UIColor whiteColor];
    
    self.infoLabel = [[BaseLabel alloc] init];
    [self.contentView addSubview:self.infoLabel];
    self.infoLabel.layer.borderColor = [[UIColor whiteColor] CGColor];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.bigImageView.frame = CGRectMake(15, 5, TableViewCellWidth - 30, TableViewCellHeight - 10);
    self.titleLabel.frame = CGRectMake(15, TableViewCellHeight / 4, TableViewCellWidth - 30, 40);
    self.infoLabel.frame = CGRectMake(15, self.titleLabel.frame.size.height + TableViewCellHeight / 4, TableViewCellWidth - 30, 40);
    
}



@end
